package com.shensi.adminCollect.utils.station;


import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 正则表达式校验
 * */
public class RegexUtils {


    /** 手机号校验 */
    public static boolean isPhoneNum(String phoneNum) {
        String regex = "^1[3|4|5|7|8][0-9]\\d{8}$";
        Pattern pattern = Pattern.compile(regex);
        Matcher matcher = pattern.matcher(phoneNum);
        return matcher.matches();
    }

}
